package com.annotationApplicationContext.ch02;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Slf4j
@Component
public class Student  {

    public Student() {
        log.debug(" ch02 create  Student,teacher:");
    }

    @PostConstruct
    public void init(){
        log.debug(" ch02 init PostConstruct");
    }

    @PreDestroy
    public void detory(){
        log.debug(" ch02 init detory");
    }
}
